﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BomComparison.Core.Model;
// 器件类，代表电子设计中的单个元件
public class Component
{
    public string PartNumber { get; set; }       // 零件编号
    public string Description { get; set; }       // 描述
    public decimal UnitPrice { get; set; }       // 单价
    public string Manufacturer { get; set; }     // 制造商
    public string Category { get; set; }         // 分类，例如电阻、电容、集成电路等
    public string Value { get; set; } = string.Empty;
    public string FootPrint { get; set; } = string.Empty;








    public string Supplier { get; set; } = string.Empty;

    public Component(string partNumber, string description, decimal unitPrice, string manufacturer, string category)
    {
        PartNumber = partNumber;
        Description = description;
        UnitPrice = unitPrice;
        Manufacturer = manufacturer;
        Category = category;
    }
}
